/*
 * controllers.c
 *
 *  Created on: Jul 6, 2009
 *      Author: jacky
 */
#include <stdio.h>
#include "controllers/controller.h"
#include "home_controller.h"
#include "test_controller.h"

#define CONTROLLER(ctl) [ctl]={.name=#ctl, .actions=ctl##_actions, .actionLength = NA(ctl##_actions)}

enum
{
	reserve_ctrlid, home, test,
};
Controller controllers[] = {
/*[home]={.name="home", .actions=home_actions, .actionLength = (sizeof(home_actions)/sizeof(home_actions[0]))}*/
CONTROLLER(home),
/* [test]={.name="test", .actions=test_actions, .actionLength = (sizeof(test_actions)/sizeof(test_actions[0]))} */
CONTROLLER(test), };

int controllersLength = NA(controllers);
